import apis from "../services/supervisoryApi";

export default {
  namespace: "supervisoryModel",
  state: {},
  effects: {
    // 监控列表
    *supervisoryList({ payload }, { call }) {
      return yield call(apis.supervisoryList, payload);
    },
    // 删除列表
    *delSupervisory({ payload }, { call }) {
      return yield call(apis.delSupervisory, payload);
    },
    // 消息源列表
    *msgSourceList({ payload }, { call }) {
      return yield call(apis.msgSourceList, payload);
    },
    // 保存列表
    *savesServisory({ payload }, { call }) {
      return yield call(apis.savesServisory, payload);
    },
    *queryServisory({ payload }, { call }) {
      return yield call(apis.queryServisory, payload);
    },
    *commitServisory({ payload }, { call }) {
      return yield call(apis.commitServisory, payload);
    },
    *updateStatus({ payload }, { call }) {
      return yield call(apis.updateStatus, payload);
    },
    *getPlanList({ payload }, { call }) {
      return yield call(apis.getPlanList, payload);
    }
  },
  reducers: {}
};
